<?php
require_once 'Abstracts.php';

class MailModel extends Abstracts{

    public function mailCount($where){
       $sql = " SELECT count(m.id) AS c FROM pk_mail AS m ".$where;
       $query = $this->query($sql);
       $data = $query->row_array();
       return $data['c']?$data['c']:0;
       
    }  
    
    public function sqlquery($sql){
        return $this->query($sql);
    }
    
}